
function injpg(){
	var objl;
	var objr;
	objl=$(".c-p-bot_changeleft");
	objl.width("33px");
	objr=$(".c-p-bot_changeright");
	objr.width("33px");	
}
function outjpg(){
	var objl;
	var objr;
	objl=$(".c-p-bot_changeleft");
	objl.width("0px");
	objr=$(".c-p-bot_changeright");
	objr.width("0px");
}


function cityshow(){
	$(".city-hover").css({"display":"block"});
	$(".city").css({"background-color":"white"});
}

function closecity(){
	$(".city-hover").css({"display":"none"});
	$(".city").css({"background-color":"#f5f5f5"});
}

function changeleft(){
	var addr;
	addr = "iamges/"+"change-1"+".jpg";

	$(".c-p-top img").attr("src",addr);
}

function changeright(){
	var addr;
	addr = "iamges/"+"change-2"+".jpg";

	$(".c-p-top img").attr("src",addr);
}

function morefun(){
	
	$(".list-more").css({"display":"block"});
	$(".list-more").css({"z-index":"99999"});
	
}
function clomorefun(){
	
	$(".list-more").css({"display":"none"});
	
}

   $(function () {
        var imgArr = [
            "iamges/change-1.jpg",
            "iamges/change-2.jpg"
        ];
        $(".c-p-top img").attr("src", imgArr[0]);
        var i = 0;
        setInterval(function () {
            i++;
            if (i > imgArr.length - 1) {
                i = 0
            }
            $(".c-p-top img").attr("src", imgArr[i]);
        }, 4000);
    });
	
	


function changebotleft(){
	
        var imgArr = [
            "iamges/change-1.jpg",
            "iamges/change-2.jpg"
        ];
		 $(".c-p-top img").attr("src", imgArr[0]);
		 var i = 0;
		    i++;
            if (i > imgArr.length - 1){
                i = 0
            }
            $(".c-p-top img").attr("src", imgArr[i]);
}

function changebotright(){
	
	var addr;
	addr = "iamges/"+"change-1"+".jpg";
	$(".c-p-top img").attr("src",addr);

}

function seachhistory(){
	$(".history").css({"display":"block"});
}


function hidehistory(){
	$(".history").css({"display":"none"});
}



function showhis(){
	$(".history").css({"display":"block"});
}

$(window).scroll(function(){
	
	var height;
	height = $(window).scrollTop();
	console.log(height);
	if(height>=200){
		$(".head-bottom").css("position","fixed").css("top","0").css("width","100%").css("z-index","999").css("background-color","white")
	}else{
		$(".head-bottom").css("position","relative").css("top","initial").css("z-index","999")
	}

})